<<<<<<< HEAD
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/3
 * Time: 21:15
 */

namespace app\index\server;


use app\index\model\Product;
use app\lib\exception\DatabaseException;
use think\Exception;

class SaleServer extends BaseServer
{
    public function getList()
    {
        try {
            $result = Product::where('sale_id', '>', 0)
                ->select();
        } catch (Exception $e) {
            throw new DatabaseException([
                'errorCode' => '',
                'msg' => $e->getMessage()
            ]);
        }
        return $result;
    }
=======
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/3
 * Time: 21:15
 */

namespace app\index\server;


use app\index\model\Product;
use app\lib\exception\DatabaseException;
use think\Exception;

class SaleServer extends BaseServer
{
    public function getList()
    {
        try {
            $result = Product::where('sale_id', '>', 0)
                ->select();
        } catch (Exception $e) {
            throw new DatabaseException([
                'errorCode' => '',
                'msg' => $e->getMessage()
            ]);
        }
        return $result;
    }
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
}